package cn.zjutleo.village_server.dto;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;

/**
 * @author : Qin Zhenghan
 * @date : Created in 2021/8/24
 * @description: 管理员手机号、密码登录DTO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class AdminLoginDto {
    /**
     * 手机号
     */
    @ApiModelProperty("管理员手机号")
    @NotEmpty(message = "手机号不能为空！")
    private String phone;
    /**
     * 密码
     */
    @ApiModelProperty("管理员密码")
    @NotEmpty(message = "密码不能为空！")
    private String password;
}
